<div class="users view">
<h2><?php  echo __('User').' '.$user['User']['nome'];?></h2>
	<dl>
		<dt><?php echo __('Id Users'); ?></dt>
		<dd>
			<?php echo h($user['User']['id_users']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Username'); ?></dt>
		<dd>
			<?php echo h($user['User']['username']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Nome'); ?></dt>
		<dd>
			<?php echo h($user['User']['nome']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Empresa'); ?></dt>
		<dd>
			<?php echo $this->Html->link($user['Empresa']['nome'], array('controller' => 'empresas', 'action' => 'view', $user['Empresa']['id_empresas'])); ?>
			&nbsp;
		</dd>
	</dl>
	<h3><?php echo __('Related Projetos');?></h3>
	<?php if (!empty($user['Projeto'])):?>
	<table class="table table-striped table-bordered">
	<tr>
		<th><?php echo __('Nome'); ?></th>
		<th><?php echo __('Descricao'); ?></th>
		<th><?php echo __('Link'); ?></th>
		<th class="actions" width="250px"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($user['Projeto'] as $projeto): ?>
		<tr>
			<td><?php echo $projeto['nome'];?></td>
			<td><?php echo $projeto['descricao'];?></td>
			<td><?php echo $projeto['link'];?></td>
			<td>
				<div class='btn-toolbar'>
					<div class='btn-group'>
						<?php echo $this->Html->link("<i class='icon-search'></i>", array('controller' => 'projetos', 'action' => 'view', $projeto['id_projetos']), array('class'=>'btn', 'escape'=>false, 'title'=>__('Ver'))); ?>
						<?php echo $this->Html->link("<i class='icon-edit'></i>", array('controller' => 'projetos', 'action' => 'edit', $projeto['id_projetos']), array('class'=>'btn', 'escape'=>false, 'title'=>__('Editar'))); ?>
						<?php echo $this->Form->postLink("<i class='icon-trash'></i>", array('controller' => 'projetos', 'action' => 'delete', $projeto['id_projetos']), array('class'=>'btn', 'escape'=>false, 'title'=>__('Apagar')), __('Are you sure you want to delete # %s?', $projeto['id_projetos'])); ?>
					</div>
				</div>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>
</div>
